<!-- 我的弹窗 -->

<template>
  <WebModal noEdit small>
    <WebForm word6>
      <FormInput label="对接服务名称" bind="connectServiceName" :max="20" required />

      <FormInput label="对接服务编码" bind="connectServiceId" :max="20" required />

      <FormSelect
        label="设备厂商"
        bind="manufacturerId, manufacturerName, manufacturerCode"
        :dict="manufacturer_selectDict"
      />

      <FormSelect
        label="设备类别"
        bind="deviceCategoryId, deviceCategoryName, deviceCategoryCode"
        :dict="categoryDict"
      />

      <FormSelect label="设备类型" bind="deviceTypeId, deviceTypeName, deviceTypeCode" :dict="typeDict" />
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import FormSync from '@admin/views/System/IOT/IOTList/MyModal/FormSync'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [
    CORE.mixWeb(),
    CORE.mixSelect('manufacturer', 'manufacturer_'),
  ],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),

  /**
   * 计算属性 (慎用箭头函数)
   */
  computed: FormSync.computed,
}
</script>
